package com.young.springdemo.controller;

public class SynDemo implements Runnable {

    public static final int MAX = 200000;

    private static int count = 0;
    @Override
    public void run() {
        for (int i = 0 ;i<MAX;i++){
            increase();
        }
    }

    private  void increase() {
        count++;
//        System.out.println(Thread.currentThread().getName()+"==="+ " "+count);
    }
}
